export const LANDSCAPE_ROUTES = ['ClassRoom'];

export const PORTRAIT_ROUTES = [
  'Entrance',
  'Login',
  'TabNav',
  'Setting',
  'WebView',
  'Contact',
  'PasswordSet',
  'PersonalInfo',
  'SpuDetail',
  'Charge',
  'RechargeRecord',
  'Order',
  'Course',
  'OrderResult',
  'ReceiveAddress',
  'OrderList',
  'OrderDetail',
  'DownloadManage',
  'FeedBack',
  'Correction'
];

export const STATUS_BAR_LIGHT_ROUTES = [];

export const NOT_SUPPORT_BACK_ROUTES = ['ClassRoom', 'OrderResult'];

export enum RouteType {
  LandScape,
  Portrait
}

export const getRouteType = (routeName: string): RouteType => {
  if (!PORTRAIT_ROUTES.find((item): boolean => item === routeName)) {
    return RouteType.LandScape;
  }
  return RouteType.Portrait;
};
